﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using appladen.contracts;
using System.Diagnostics;

namespace appladen.csvwerk
{
    public class Header_von_Daten_trennen : IHeader_von_Daten_trennen
    {
        public event Action<IEnumerable<string>> Daten = delegate {};

        public event Action<string> Header = delegate { };

        public void Process(IEnumerable<string> message)
        {
            Trace.TraceInformation("Header von Daten trennen.Process");
            Header(message.First());
            Daten(message.Skip(1));
        }
    }
}
